package com.kfm.demo.utils;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Resp {

    private int code;

    private String message;

    private Object data;

    private String status;

    public static Resp success(Object data) {
        return new Resp(200, "success", data, "success");
    }

    public static Resp error(String message) {
        return new Resp(500, message, null, "error");
    }




}
